<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<title>Document</title>
	</head>
	<body>
		<script type="text/javascript" >
			class Person{
				constructor(name,age){
					this.name = name
					this.age = age
				}
				speak(){
					console.log('speak',this)
				}
			}

			const p = new Person('张三',18)
			// p.speak()
			const x = p.speak
			x()
		</script>
	</body>
</html>